Skip to content

Bpw/sturm lcpp#235

Merged
jbrzensk merged 13 commits intomainfrom
bpw/sturmLcpp
Dec 5, 2025
Merged

Bpw/sturm lcpp#235
jbrzensk merged 13 commits intomainfrom
bpw/sturmLcpp

Conversation

@bewagner1
Copy link
Copy Markdown
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Example
  • Documentation

Description

This PR contains the current Sturm-Liouville Matlab examples now implemented in C++ along with updated documentation for all Sturm-Liouville examples.

Related Issues & Documents

QA Instructions, Screenshots, Recordings

My machine is an M1 MacBook Pro. The norms of the difference between the MOLE solution and exact solution are the same as in the Matlab implementation.

Added/updated tests?

_We encourage you to test all code included with MOLE, including examples.

  • Yes
  • No, and this is why: I do not know how and the norms of the difference between the C++ MOLE solution and exact solution are the same as in the Matlab implementation.
  • I need help with writing tests

Read Contributing Guide and Code of Conduct

[optional] Are there any post deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

Comment thread doc/sphinx/source/examples/Sturm-Liouville/Chebyshev.md Outdated
@bewagner1
Copy link
Copy Markdown
Collaborator Author

I believe issue #239 is what's causing the last of the fails

Copy link
Copy Markdown
Collaborator

@jbrzensk jbrzensk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bewagner1 for this. I added some notes to the first example, which can be applied to the others.

The docs have some small nitpick items. The code as well. Basically, if something is constant, declare it as such.

For the armadillo vectors and matrices, call them as arma::vec or arma::mat so the reader knows, even though mole uses the armadillo namespace.

I checked the solutions, they seem on par with the MATLAB. You need to add some text about what the output is. See the comment in the code.

Thanks Ben!!

Comment thread doc/sphinx/source/examples/Sturm-Liouville/Bessel.md Outdated
Comment thread examples/cpp/sturmLiouvilleHelmholtzDirichletRobin.cpp
Comment thread examples/cpp/sturmLiouvilleHermite.cpp
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp Outdated
Comment thread examples/cpp/sturmLiouvilleBessel.cpp
@bewagner1 bewagner1 requested a review from jbrzensk December 4, 2025 00:03
@jbrzensk jbrzensk dismissed valeriabarra’s stale review December 5, 2025 22:33

Requested changes were addressed

@jbrzensk jbrzensk merged commit 86128f3 into main Dec 5, 2025
17 checks passed
@jbrzensk jbrzensk deleted the bpw/sturmLcpp branch December 5, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sturm Liouville C++ Examples

3 participants